package org.abc.program.service.impl;

import org.abc.program.dao.admin.UserDao;
import org.abc.program.entity.User;
import org.abc.program.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {

	@Resource  // 尝试用javaResource装配
	private UserDao userDao;

	@Override
	public User getUserByName(String username) {
		User user = userDao.findByUserName(username);
		return user;
	}
}
